﻿using System;
namespace FixedWidth.Configuration.Rules
{
	public interface IColumnRule
	{
		int Length { get; set; }
		string Name { get; set; }
		object Parse(string toParse);
		int Position { get; set; }
		Type Type { get; }
	}
	
	public interface IColumnRule<T> : IColumnRule
	{
		ColumnRule<T>.RuleFluentInterface<T> Configure { get; }
		T ParseTyped(string rowdata);
		Func<string, T> ParsingFunction { get; set; }
	}
}
